name = "zengziyun"
print(f"Hello {name},would you like to learn some python today?")
# 练习2.3
print(name.upper())
print(name.lower())
print(name.title())
# 练习2.4
print('Albert Einsterin once said'
      ',"A person who never made a mistake never tried anything new"')
# 练习2.5
famous_person = "Albert Einsterin"
message = '"A person who never made a mistake never tried anything new"'
print(f"{famous_person} once said {message}")
print(f"{famous_person.upper()} once said {message}")
# 练习2.6
famous_person = "\t\nAlbert Einsterin\t\n"
message = '"A person who never made a mistake never tried anything new"'
print(f"{famous_person} once said {message}")
print(f"{famous_person.upper()} once said {message}")
famous_person = famous_person.lstrip()
print(f"{famous_person} once said {message}")
famous_person = famous_person.rstrip()
print(f"{famous_person} once said {message}")
# 练习2.7
filename = "python_notes.txt"
print(filename.removesuffix(".txt"))
# 练习2.8
